<div class="contener body_panel">
    <h2>Last Enrolled Players</h2>
    <?php $index=0; $rightClass = ''; ?>
    <?php foreach($this->lastEnrolledPlayers as $player): ?>
        <?php
            $index = $index + 1;
            if($index % 4 == 0) {
                $rightClass = 'noright_mar';
            } else {
                $rightClass = '';
            }
        ?>
        <div class="players_panel <?php echo $rightClass;?>">
            <div class="info">
                <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/players/264.186/<?php echo $player->person->image;?>" alt="pic"
                     class="player"/>

                <h3><?php echo $player->person->fullName;?></h3>
                <ul>
                    <li><strong>Citizenship</strong> <span><img
                            src="<?php echo Yii::app()->request->baseUrl; ?>/images/flags/<?php echo $player->person->citizenship->code;?>.png" width="20" height="14"
                            alt="flags"/> <?php echo $player->person->citizenship->name;?></span>
                    </li>
                    <li><strong>Position</strong> <span><?php echo $player->position;?></span></li>
                    <li><strong>Hand</strong> <span><?php echo $player->hand;?></span></li>
                    <li><strong>Current residence</strong> <span><img
                            src="<?php echo Yii::app()->request->baseUrl; ?>/images/flags/<?php echo $player->person->residence->code;?>.png" width="20" height="14"
                            alt="flags"/> <?php echo $player->person->residence->name;?></span></li>
                </ul>
                <a href="index.php?r=site/details&id=<?php echo $player->id;?>" class="read_more">Go to the Profile &raquo;</a>
            </div>
            <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/players-info-bg.jpg" width="287" height="10" alt="pic"/>
        </div>
    <?php endforeach; ?>
</div>